package com.donleo.stmg.entity.service;

import com.donleo.stmg.common.api.CommonResult;
import com.donleo.stmg.entity.model.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.donleo.stmg.entity.vo.RoleVo;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author liangd
 * @since 2020-12-21
 */
public interface RoleService extends IService<Role> {

    CommonResult add(Role role);

    CommonResult delete(Integer id);

    CommonResult updateRole(Role role);

    Role findById(Integer id);

    List<Role> findAll(RoleVo roleVo);

    long getCount(RoleVo roleVo);

}
